package com.example.smart.ui.m

import com.example.lib.extend.setOnDoubleClickListener
import com.example.lib.utils.ToastUtils
import com.example.lib.utils.statusbar.StatusBarUtils
import com.example.smart.base.ui.activity.BaseActivity
import com.example.smart.R
import com.example.smart.databinding.ActivityAddAnimalChooseMBinding
import com.example.smart.utils.DisplayUtils

class MAddAnimalChooseActivity : BaseActivity<ActivityAddAnimalChooseMBinding>() {

    override fun layoutID() = R.layout.activity_add_animal_choose_m

    override fun initView() {
        StatusBarUtils.setStateAndNavigationBar(this@MAddAnimalChooseActivity,
            statusBarColor = com.example.lib.R.color.translate)
    }

    override fun initListener() {
        binding.QrCode.setOnDoubleClickListener {
            DisplayUtils.toAddAnimalQrCode(this@MAddAnimalChooseActivity)
        }

        binding.Nfc.setOnDoubleClickListener {
            ToastUtils.showToast(getString(R.string.choose_not_support_nfc))
        }
    }
}